package com.kgc.sportscircle.pojo;

import java.util.Date;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 描述：实体类
* @author 杨海文
* @date 2019/07/22
*/
public class Forumpost implements Serializable {

   /**id*/
    private Integer id;
   /**评论内容*/
    private String context;
   /**发布时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
   /**用户id*/
    private Integer userId;

    public Forumpost(){}
    
    public Forumpost(Integer id,String context,Date createTime,Integer userId){
        this.id = id;
        this.context = context;
        this.createTime = createTime;
        this.userId = userId;
    }

   /**获取id属性的值*/
    public Integer getId() {
        return this.id;
    }
   /**设置id属性的值*/
    public void setId(Integer id) {
        this.id = id;
    }
   /**获取评论内容属性的值*/
    public String getContext() {
        return this.context;
    }
   /**设置评论内容属性的值*/
    public void setContext(String context) {
        this.context = context;
    }
   /**获取发布时间属性的值*/
    public Date getCreateTime() {
        return this.createTime;
    }
   /**设置发布时间属性的值*/
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
   /**获取用户id属性的值*/
    public Integer getUserId() {
        return this.userId;
    }
   /**设置用户id属性的值*/
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
